export default {
	state: {
		isConnect: false, //连接标识 避免重复连接
    isInit: false,
		socketMessage: {}
	},

	mutations: {
    setIsConnect(state, isConnect) {
			state.isConnect = isConnect;
		},
    setIsInit(state, isInit) {
			state.isInit = isInit;
		},
    setSocketMessage(state, socketMessage) {
			console.log('socketMessage' , socketMessage)
			state.socketMessage = { ...socketMessage, time: new Date() }
		}
	},
	actions:{
	}
	
}